package com.jl.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 设备表
 * </p>
 *
 * @author JiangJian
 * @since 2019-03-06
 */
@TableName("device")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 设备名称
     */
    private String name;

    /**
     * 当前设备的描述信息
     */
    private String description;

    /**
     * 设备编号
     */
    private String number;

    /**
     * 型号编码(属性)
     */
    private String modelNumber;

    /**
     * 设备类型id(外键)
     */
    private Long modelId;

    /**
     * 制作厂商
     */
    private String producer;

    /**
     * 生产线
     */
    private Long productionLine;

    /**
     * 状态码：暂未定义
     */
    private Integer status;


    /**
     * 安装年月
     */
    private Date installDate;

    /**
     * 生产年月
     */
    private Date bornDate;

    /**
     *该设备故障总时长,单位分钟
     */
    private Integer failTotalTime;

    /**
     *该设备故障总次数
     */
    private Integer failCount;

    /**
     * 承保人
     */
    private Long insurerId;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 创建者id，如果值为0则表示系统导入
     */
    private Long createId;

    /**
     * 修改时间
     */
    private Date gmtModified;

    /**
     * 修改者id
     */
    private Long modifyId;

    /**
     * 是否更改了设备类型信息
     */
    @TableField(exist = false)
    private boolean hasChangeModel;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getModelNumber() {
        return modelNumber;
    }

    public void setModelNumber(String modelNumber) {
        this.modelNumber = modelNumber;
    }

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public String getProducer() {
        return producer;
    }

    public void setProducer(String producer) {
        this.producer = producer;
    }

    public Long getProductionLine() {
        return productionLine;
    }

    public void setProductionLine(Long productionLine) {
        this.productionLine = productionLine;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getInstallDate() {
        return installDate;
    }

    public void setInstallDate(Date installDate) {
        this.installDate = installDate;
    }

    public Date getBornDate() {
        return bornDate;
    }

    public void setBornDate(Date bornDate) {
        this.bornDate = bornDate;
    }


    public Integer getFailTotalTime() {
        return failTotalTime;
    }

    public void setFailTotalTime(Integer failTotalTime) {
        this.failTotalTime = failTotalTime;
    }

    public Integer getFailCount() {
        return failCount;
    }

    public void setFailCount(Integer failCount) {
        this.failCount = failCount;
    }

    public Long getInsurerId() {
        return insurerId;
    }

    public void setInsurerId(Long insurerId) {
        this.insurerId = insurerId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }

    public boolean isHasChangeModel() {
        return hasChangeModel;
    }

    public void setHasChangeModel(boolean hasChangeModel) {
        this.hasChangeModel = hasChangeModel;
    }
}
